package com.example.vehiclefabric.DAO;

import com.example.vehiclefabric.DTO.VehicleBean;

import java.util.List;

/**
 * @name: VehicleDAO
 * @description: 定义车辆密钥保存至数据库的接口。
 * @author: Lulu Zhao
 **/
public interface VehicleDAO {
    List<VehicleBean> findAll();

    VehicleBean findByVehicleId(String vehicleId);

    boolean addVehicle(VehicleBean vehicleBean);

    boolean updateByVehicleId(String vehicleId, String KeySm4, String KeyHmac);

    boolean deleteByVehicleId(String vehicleId);
}
